/*
 * @Description: 你的代码我的心
 * @Author: GGB
 * @Date: 2021-12-21 14:33:02
 * @LastEditors: GGB
 * @LastEditTime: 2021-12-30 09:42:16
 */
import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const order: AppRouteModule = {
  path: '/order',
  name: 'Order',
  component: LAYOUT,
  redirect: '/order/index',
  meta: {
    icon: 'ant-design:shopping-outlined',
    title: t('routes.order.order'),
    orderNo: 3,

  },
  children: [
    {
      path: 'index',
      name: 'OrderPage',
      component: () => import('/@/views/order/index.vue'),
      meta: {
        title: t('routes.order.order'),
        icon: 'ant-design:shopping-outlined',
      },
    },
    {
      path: 'detail/:id',
      name: 'DetailPage',
      component: () => import('/@/views/order/detail/index.vue'),
      meta: {
        carryParam: true,
        hideMenu: true,
        ignoreKeepAlive: true,
        title: t('routes.order.detail'),
        icon: 'ant-design:shopping-outlined',
      },
    },
    {
      path: 'refund',
      name: 'RefundPage',
      component: () => import('/@/views/order/refund/index.vue'),
      meta: {
        title: t('routes.order.refund'),
        icon: 'ant-design:pound-circle-outlined',
      },
    },
    {
      path: 'verify',
      name: 'VerifyPage',
      component: () => import('/@/views/order/verify/index.vue'),
      meta: {
        title: t('routes.order.verify'),
        icon: 'ant-design:unordered-list-outlined',
      },
    },
    {
      path: 'platform',
      name: 'PlatformPage',
      component: () => import('/@/views/order/verify/platform.vue'),
      meta: {
        title: t('routes.order.platform'),
        icon: 'ant-design:desktop-outlined',
      },
    },
  ],
};

export default order;
